import request from '@/utils/request'

// 查询机器人设置列表
export function listSetting(query) {
  return request({
    url: '/robot/setting/list',
    method: 'get',
    params: query
  })
}

// 查询机器人设置详细
export function getSetting(userId) {
  return request({
    url: '/robot/setting/' + userId,
    method: 'get'
  })
}

// 新增机器人设置
export function addSetting(data) {
  return request({
    url: '/robot/setting',
    method: 'post',
    data: data
  })
}

// 修改机器人设置
export function updateSetting(data) {
  return request({
    url: '/robot/setting',
    method: 'put',
    data: data
  })
}

// 删除机器人设置
export function delSetting(userId) {
  return request({
    url: '/robot/setting/' + userId,
    method: 'delete'
  })
}
